//任务一、二 注解及xml依赖注入 对应上方testdao03、04

import com.example.demo.dao.impl.TestDao03;
import com.example.demo.dao.impl.TestDao04;
import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class secondtest {
    @Test

    public void test03(){
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");
        TestDao03 xml=(TestDao03) applicationContext.getBean("testDao03");
        xml.show();
    }

    @Test
    public void test04(){
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");
        TestDao04 testDao04=(TestDao04) applicationContext.getBean(TestDao04.class);
    }
}
